package com.lecyon.farm.common.exception;

import lombok.Data;

/**
 * @author Yao Zheng
 * @Date 2019/9/4 9:38
 */
@Data
public class FarmException extends RuntimeException {

    /**
     * 异常错误码
     */
    private Integer code;

    /**
     * 异常消息
     */
    private String message;

    public FarmException(Integer code, String message) {
        this.code = code;
        this.message = message;
    }
}
